﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class nowa_sym : Form
    {
        public string nazwa { get; set; }
        public bool przerwanie { get; set; }
        public int wskaznik { get; set; }

        public nowa_sym()
        {
            InitializeComponent();
            przerwanie = true;
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            if (textBox1.Text != "")
            {
                button1.Enabled = true;
            }
            else
            {
                button1.Enabled = false;
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            nazwa = textBox1.Text;
            przerwanie = false;
            wskaznik = 2;
            Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}
